﻿using Entity;
using Entity.Dto;
using System.Collections.Generic;
using Utils;

namespace DataBaseConnect.App
{
    public interface IMessageAppService
    {
        /// <summary>
        /// 获取消息(分页)
        /// <param name="MenuName">菜单名</param>
        /// <param name="page">当前页码</param>
        /// <param name="limit">每页显示多少条</param>
        /// <param name="rowCount">总条数</param>
        /// <returns></returns>
        List<MessageDto> GetMessageList(int IsSee, int page, int limit, out int rowCount);

        /// <summary>
        /// 获取消息条数
        /// <returns></returns>
        List<MessageDto> GetMessageCount(int IsSee);

        /// <summary>
        /// 添加信息
        /// </summary>
        /// <param name="input">信息实体</param>
        /// <returns></returns>
        ReceiveStatus AddMessage(Message input);

        /// <summary>
        /// 标记为已读
        /// </summary>
        /// <param name="Id"></param>
        /// <returns></returns>
        ReceiveStatus UpdateMessage(int Id);
    }
}
